import 'package:bookshelf/generated/json/base/json_field.dart';
import 'package:bookshelf/generated/json/book_entity.g.dart';
import 'dart:convert';

@JsonSerializable()
class BookEntity {

	String? searchNo;
	String? isbn;
	@JSONField(name: "main_title")
	String? mainTitle;
	String? author;
	String? chiClassify;
	String? subject;
	String? publisher;
	dynamic publishAddr;
	String? publishDate;
	double? price;
	String? pages;
	dynamic summary;
	String? place;
	String? placeName;
	String? placeFirst;
	String? firstPlaceName;
	String? uid;
	String? no;
	String? stateValue;
	dynamic rfid;
	String? title;
	String? cover;
	String? book_id;
	String? search_no;
	int? recommend_score;
	int? score;

	//0 正确
	//1 新增
	//2 错架
	//-1 缺失
	int? status;


	BookEntity();

  factory BookEntity.fromJson(Map<String, dynamic> json) => $BookEntityFromJson(json);

  Map<String, dynamic> toJson() => $BookEntityToJson(this);

  @override
  String toString() {
    return jsonEncode(this);
  }
}